package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.*;
import com.mes.cloud.entity.SysDictionary;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 字典表
 *
 * @author Mr.zhang
 * @version 2019-07-30 13:43:19
 * @email 407892370@qq.com
 */
public interface SysDictionaryDao extends SelectByIdsMapper<SysDictionary>, Mapper<SysDictionary> {
    List<SysDictionary> sysDictionaryList(SysDictionaryPageRequest sysDictionaryPageRequest);

    int  selectUnique(SysDictionaryUniqueRequest sysDictionaryUniqueRequest);

    int updateDefaultFlag(SysDictionary sysDictionary);

    int batchEnable(SysDicibatchEnableRequest dictRequest);

    SysDictionary codeAndValueList(CodeAndValueRequest codeAndValueRequest);

    List<SysDictionary> codeAndNameList(CodeAndNameListRequest codeAndNameListRequest);

    List<SysDictionary> selectList(SysDictionaryRequest sysDictionaryRequest);

    /**
     * @Author ysd
     * @Description 客户同步字典值查询
     * @Date 19:00 2019/12/17
     **/
    List<SysDictionary> findListByCodes(List<String> codes);
}
